﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dapper;
using Dapper.Contrib.Extensions;

namespace SmartlForm.Model
{
    /// <summary>
    /// 文章
    /// </summary>
    [Table("article")]
    public class Article
    {
        [Key]
        public long id { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public string content { get; set; }
        /// <summary>
        /// 图片
        /// </summary>
        public string imgs { get; set; }
        /// <summary>
        /// 账号id
        /// </summary>
        public long account_id { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public string c_time { get; set; }
        /// <summary>
        /// 文章类型
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 文章来源
        /// </summary>
        public string source { get; set; }
        /// <summary>
        /// 来源url
        /// </summary>
        public string url { get; set; }
        /// <summary>
        /// 作者
        /// </summary>
        public string author { get; set; }
        /// <summary>
        /// 简介
        /// </summary>
        public string desc { get; set; }
    }
}